package com.spider.spiderorderadmin.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.spider.spiderorderadmin.entity.dto.DataDictionaryDTO;
import com.spider.spiderorderadmin.entity.model.DataDictionary;
import com.spider.spiderorderadmin.entity.model.DataDictionaryDesc;
import com.spider.spiderorderadmin.entity.param.DataDictionaryQueryParam;


/**
 * 数据字典接口
 *
 * @author xiong.bo
 * @version 1.0
 * @date 2020/12/1 17:26
 */
public interface DataDictionaryService extends IService<DataDictionary> {

    /**
     * 获取数据字典列表
     *
     * @param queryParam
     * @return
     */
    Page<DataDictionary> selectPage(DataDictionaryQueryParam queryParam);

    /**
     * 查看详情
     *
     * @param id
     * @return
     */
    DataDictionaryDTO findById(Long id);

    /**
     * 新增数据字典详情
     *
     * @param dataDictionaryDto
     * @return
     */
    DataDictionaryDTO saveDataDictionary(DataDictionaryDTO dataDictionaryDto);


    /**
     * 修改数据字典详情
     *
     * @param dataDictionaryDesc
     * @return
     */
    DataDictionaryDTO updateDataDictionary(DataDictionaryDTO dataDictionaryDesc);


    /**
     * 删除数据字典
     *
     * @param ids 主键id
     * @return
     */
    Boolean deleteById(String ids);

    /**
     * 新增数据字典明细数据
     *
     * @param dictionaryDesc
     * @return
     */
    DataDictionaryDesc createDictDesc(DataDictionaryDesc dictionaryDesc);

    /**
     * 修改数据字典明细数据
     *
     * @param dictionaryDesc
     * @return
     */
    DataDictionaryDesc updateDictDesc(DataDictionaryDesc dictionaryDesc);

    /**
     * 删除数据字典明细数据
     *
     * @param id
     * @return
     */
    Boolean deleteDictDesc(Long id);
}
